#!/bin/bash
set -e

# 替换nginx配置中的后端API地址
envsubst '${BACKEND_API_URL}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf

# 启动nginx
nginx -g "daemon off;" 
